package yunquan.wang.modules.customer.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import yunquan.wang.base.domain.AuditableEntity;
import yunquan.wang.modules.base.entity.UserBasic;

@Entity
@Table(name = "c_business_record")
public class BusinessRecord extends AuditableEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1804792353937822760L;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "userbasic_id")
	private UserBasic userBasic;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "customer_id")
	private Customer customer;
	@Column(name="amount",length=8)
	private Integer amount;
	@Column(name="type",length=1)
	private Integer type;// 买入，卖出。
	@Column(name="status",length=1)
	private Integer status;// 进行中，已完成
	@Column(name="dealtime")
	private Date dealTime;//成交时间
	@Column(name="billno",length=50)
	private String billNo;//单据号
	
	public String getBillNo() {
		return billNo;
	}

	public void setBillNo(String billNo) {
		this.billNo = billNo;
	}

	public UserBasic getUserBasic() {
		return userBasic;
	}

	public void setUserBasic(UserBasic userBasic) {
		this.userBasic = userBasic;
	}

 

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getDealTime() {
		return dealTime;
	}

	public void setDealTime(Date dealTime) {
		this.dealTime = dealTime;
	}
	
	
}
